package com.zbkj.dal.base.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author wangzhengyan
 * @date 2024/4/6 4:27 PM
 */
@AllArgsConstructor
@Getter
public enum ShareOrderLogTypeEnums {
    // 提交供享订单
    SUBMIT("SUBMIT", "提交供享订单"),
    // 提交初评结果
    SUBMIT_EVALUATION("SUBMIT_EVALUATION", "提交初评结果"),
    // 修改初评结果
    MODIFY_EVALUATION("MODIFY_EVALUATION", "修改初评结果"),
    // 确认初评结果并预约寄送
    CONFIRM_EVALUATION_AND_EXPRESS_DELIVERY("CONFIRM_EVALUATION_AND_EXPRESS_DELIVERY", "确认初评结果并预约寄送"),
    // 确认收货
    PLAT_CONFIRM_RECEIPT("PLAT_CONFIRM_RECEIPT", "贝贝奢护确认收货"),
    // 提交终评结果
    SUBMIT_FINAL_EVALUATION("SUBMIT_FINAL_EVALUATION", "提交终评结果"),
    // 确认最终估价
    CONFIRM_FINAL_EVALUATION("CONFIRM_FINAL_EVALUATION", "确认最终估价(供享完成)"),
    // 修改最终估价
    MODIFY_FINAL_EVALUATION("MODIFY_FINAL_EVALUATION", "修改最终估价"),
    // 确认提货
    CONFIRM_PICKUP("CONFIRM_PICKUP", "确认提货"),
    // 退回中发货寄回
    RETURNED_SHIPMENT("RETURNED_SHIPMENT", "退回中发货寄回"),
    ;
    private final String name;
    private final String text;

    public static String text(String name) {
        for (ShareOrderLogTypeEnums value : ShareOrderLogTypeEnums.values()) {
            if (value.name.equals(name)) {
                return value.text;
            }
        }
        return null;
    }

}
